package com.starryx.driverschool.dao;

import com.starryx.driverschool.po.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User, Long> {

    User findByUsernameAndPasswordAndFlag(String username, String password, boolean flag);

    User findByUsername(String username);
}
